<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://www.springframework.org/security/tags"
	prefix="ss"%>

<ss:authorize access="hasRole('ROLE_USER')">
	<div id=""><p><%= session.getAttribute("displayName")%></p></div>
	<div id="">
		<a href="<%=request.getContextPath()%>/users/show.do?userId=<%= session.getAttribute("userId") %>" >Details</a>
		<a href="<%=request.getContextPath()%>/umgr/logout.do"> Logout</a>
	</div>
</ss:authorize>
<ss:authorize access="isAnonymous()">
	<div id="search-input"></div>
	<div id="search-submit">
		<a href="<%=request.getContextPath()%>/umgr.do"> Login</a>
	</div>
</ss:authorize>
